projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99f6249
)
mpc8xxx: call i2c_set_bus_num in __get_spd
author
Valentin Longchamp
<
[email protected]
>
Fri, 18 Oct 2013 09:47:19 +0000
(11:47 +0200)
committer
York Sun
<
[email protected]
>
Thu, 24 Oct 2013 16:35:46 +0000
(09:35 -0700)
This is necessary with the new I2C subystem that was introduced lately.
Signed-off-by: Valentin Longchamp <
[email protected]
>
arch/powerpc/cpu/mpc8xxx/ddr/main.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/cpu/mpc8xxx/ddr/main.c
b/arch/powerpc/cpu/mpc8xxx/ddr/main.c
index b9ae9509be3dee082850e38c3101c4219567b063..34d8bc3ac0197297046074aff942e3727d86e6bc 100644
(file)
--- a/
arch/powerpc/cpu/mpc8xxx/ddr/main.c
+++ b/
arch/powerpc/cpu/mpc8xxx/ddr/main.c
@@
-69,7
+69,11
@@
u8 spd_i2c_addr[CONFIG_NUM_DDR_CONTROLLERS][CONFIG_DIMM_SLOTS_PER_CTLR] = {
static void __get_spd(generic_spd_eeprom_t *spd, u8 i2c_address)
{
- int ret = i2c_read(i2c_address, 0, 1, (uchar *)spd,
+ int ret;
+
+ i2c_set_bus_num(CONFIG_SYS_SPD_BUS_NUM);
+
+ ret = i2c_read(i2c_address, 0, 1, (uchar *)spd,
sizeof(generic_spd_eeprom_t));
if (ret) {